package com.jcl.recruit.user.mapper;

import com.jcl.recruit.user.model.UserResumeAttention;

import static org.apache.ibatis.jdbc.SqlBuilder.*;

public class UserResumeAttentionProvider {
    
    public String insertSelective(UserResumeAttention attention){
        BEGIN();
        INSERT_INTO("user_resume_attention");
        if(null != attention.getUserId()){
            VALUES("user_id", "#{userId,jdbcType=INTEGER}");
        }
        if(null != attention.getResumeId()){
            VALUES("resume_id", "#{resumeId,jdbcType=INTEGER}");
        }

        if(null != attention.getSearchResumeId()){
            VALUES("search_resume_id", "#{searchResumeId,jdbcType=INTEGER}");
        }
        if(null != attention.getApplyOtherJid()){
            VALUES("apply_other_jid", "#{applyOtherJid,jdbcType=VARCHAR}");
        }
        if(null != attention.getStatus()){
            VALUES("status", "#{status,jdbcType=INTEGER}");
        }
        if(null != attention.getCreateTime()){
            VALUES("create_time", "#{createTime,jdbcType=TIMESTAMP}");
        }
        if(null != attention.getUpdateTime()){
            VALUES("update_time", "#{updateTime,jdbcType=TIMESTAMP}");
        }
        return SQL();
    }
}
